from django.http import HttpResponse
from django.shortcuts import render

from axfHome.models import AxfWheel, Axf_nav, Axf_mustbuy, Axf_mainshow


def index(request):
    return HttpResponse('index')


def home(request):
    axfwheel = AxfWheel.objects.all()
    axfnavs = Axf_nav.objects.all()
    axfmustbuys = Axf_mustbuy.objects.all()
    axfmainshows = Axf_mainshow.objects.all()
    for i in axfmainshows:
        print(i.name)
    return render(request,'axf/main/home/home.html',context=locals())